import {requests, RestRequest} from "@/api"

export const userApi = new RestRequest("/user")

userApi.login = function (username, password) {
  return requests.post(this.url + "/login", {username, password})
}


